#-----------------------------------------------------
Replication Archive for 
"Extreme Weather Events and the Politics of Climate Change Attribution"
Authors: Zuhad Hai and Rebecca Perlman
#----------------------------------------------------

#--General Information:

- The replication archive is divided into three directories:
	1. "code" contains all R files that generate results, plots and tables
	2. "input" contains all data, including data generated to create plots and tables
		- survey1.csv and survey2.csv are survey data from the first and second wave, respectively. 
		- press_releases.csv contains press release data, and press_releases_byeventype.csv contains press release data disaggregated by event type. 
	3. "output" contains all generated plots and latex tables

- Note: before running any file in the "code" directory, change the working directory at the top to the location of the "final_hai_perlman_replication" folder


#--Steps to Replicate:

1. First run the following files to run and store regression results in RData files in the input folder:
	- 01_run_regressions_survey1.R
	- 02_run_regressions_survey2.R
	- 03_run_weighted_regressions.R

2. All plots in the paper are generated by code in the code/plots folder

3. All tables in the paper are generated by code in the code/tables folder


#-- Specific Tables and Figures in Main Body of Paper

The following code replicates specific tables and figures in the main body of the paper:
	Table 1:
		code: tables_sumstats_dvs.R
		output: sumstats_DV_control_survey2.tex
	Figure 1:
		code: plots_press_releases.R
		output: climatepr_ts1_wpc.pdf
	Figure 2:
		code: plots_ols_survey1_controls.R
		output: survey1_results_main.png
	Figure 3:
		code: plots_ols_survey1_controls.R
		output: survey1_resultspolitician_sympathy.png
	Figure 4:
		code: plots_ols_survey1_controls.R
		output: survey1_resultstax_support.png
	Figure 5:
		code: plots_ols_survey2_controls.R
		output: survey2_results_main.png
	Figure 6:
		code: plots_ols_survey2_controls.R
		output: survey2_resultspolitician_sympathy.png
	Figure 7:
		code: plots_ols_survey2_controls.R
		output: survey2_resultstax_support.png
	Figure 8:
		code: plots_ols_survey2_controls.R
		output: survey2_resultswildfire_morecommon_pooled.png








